﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls; 

namespace Microsoft.JCI.Common.Utility
{
    public static class ControlExtension
    {
        public static void BindEnum(this DropDownList ddl, EnumeratorHelper[] enums)
        {
            ddl.DataSource = enums;
            ddl.DataTextField = "enumDisplayText";
            ddl.DataValueField = "EnumValue";
            ddl.DataBind();
        }
    }
}
